﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BL.objects;
using System.Data;
using BL.data;

namespace BL
{
    class GraphDataSet
    {
        DataSet m_ds;

        public GraphDataSet(DataSet ds)
        {
            m_ds = ds;
        }

        public Graph ToGraph()
        {            
            EdgeDataSet edgeDs = new EdgeDataSet(m_ds);

            Graph graph = new Graph(edgeDs.ToEdges());

            return graph;
        }
    }
}
